package com.example.dayu521.sg_oss.service;

import org.example.dayu521.SafeParam;
import org.example.dayu521.exception.BadObjSize;
import org.example.dayu521.exception.DuplicateOssObj;
import org.example.dayu521.exception.NoSuchOss;

import java.io.InputStream;
import java.util.List;

public interface Oss extends BaseExpose{
    void put_obj( String obj_name,InputStream obj_src,@SafeParam("非负")long obj_size ) throws DuplicateOssObj;
    InputStream get_obj(@SafeParam("非空") String obj_name) throws NoSuchOss;

    boolean rm_obj(String obj_name);

    String oss_identify();
}
